package com.tuanbiao.ui.log;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.hzjq.data.entity.BlastEntity;
import com.tuanbiao.R;

import timber.log.Timber;

/**
 * @author abiao
 * @since 2022/4/29 11:26
 */
public class BlastCopyAdapter extends BaseQuickAdapter<BlastEntity, BaseViewHolder> {
    public BlastCopyAdapter() {
        super(R.layout.item_blast_copy);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, BlastEntity entity) {
        Timber.i("" + entity);
        holder.setText(R.id.tv_contract_code, getContext().getString(R.string.blast_copy_contract_code, entity.getHtId()))
                .setText(R.id.tv_count, getContext().getString(R.string.blast_copy_count, entity.getBlastCount()))
                .setText(R.id.tv_time, entity.getBlastTime());
        String.valueOf(entity.getUploadStatus());
//        holder.setEnabled(R.id.btn_upload, false);
    }
}
